/*
 * Copyright @ 苏州瑞云信息技术有限公司 All rights reserved.
 */
package work.base.data.compare;

import java.util.Arrays;
import java.util.Collections;

/**
 * @author Sakura Shen
 * @description
 * @date 2021/9/9
 */
public class SortTest {
    public static void main(String[] args) {

        // Arrays类可以对数组对象进行排序
        Integer[] temp = {3, 5, 7, 9, 1, 2, 6, 8};
        Arrays.sort(temp, Collections.reverseOrder());
        System.out.print("排序后的结果:");
        System.out.println(Arrays.toString(temp));

    }
}
